<?php
	//check to see if a search string was posted to this page
	//else show the default screen
	
  if(isset($_POST['searchMovieString'])) {//Search button was pressed
    $ts = $_POST['searchMovieString'];
    $title = "Results for $ts";
    include('header.php');
    include('moviesearch.php');
  
  }
  elseif(isset($_GET['movie'])) {
  	$ts = $_GET['movie'];
    $title = $ts;
    include('header.php');
    //print "MOVIE INFO HERE FOR $ts";
    include('movie.php');
  }
  else {
    $title = "Movies";
    $optionalcss = 
    '<script type="text/javascript" src="jquery-1.4.2.min.js"></script>
<script type="text/javascript" src="coin-slider.min.js"></script>
<link rel="stylesheet" href="coin-slider-styles.css" type="text/css" />';
    include('header.php');
		include('moviesdefault.php');   
  }

	include('footer.php');
?>
